package io.github.wslxm.springbootplus2.core.base.desensitization.handler;


import cn.hutool.core.util.DesensitizedUtil;
import io.github.wslxm.springbootplus2.core.base.desensitization.DesensitizationHandler;

/**
 * IPv6脱敏，如：脱敏前：2001:0db8:86a3:08d3:1319:8a2e:0370:7344；脱敏后：2001:*:*:*:*:*:*:*
 *
 * @author wangsong
 * @date 2023/09/05
 */
public class Ipv6DesensitizationHandler implements DesensitizationHandler {

    @Override
    public String handler(String str) {
        return DesensitizedUtil.ipv6(str);
    }
}
